Skip to content

Enable data area 4 internal-log ocp plugin command#2901

Merged
igaw merged 2 commits intolinux-nvme:masterfrom
jeff-lien-sndk:enable-da4-ocp
Aug 28, 2025
Merged

Enable data area 4 internal-log ocp plugin command#2901
igaw merged 2 commits intolinux-nvme:masterfrom
jeff-lien-sndk:enable-da4-ocp

Conversation

@jeff-lien-sndk
Copy link
Copy Markdown
Contributor

The current ocp internal-log command will only retrieve up to data area 3. This change will enable retrieving of all 4 telemetry log data areas.

It will also refactor the code used to save off the 2 files collected: telemetry log and string log along with the 1 generated file: the parsed da 1 and 2 data.

Swap -o and -f on output-format and output-file parameters.

@jeff-lien-sndk jeff-lien-sndk force-pushed the enable-da4-ocp branch 2 times, most recently from 2800364 to 1ce97b7 Compare August 27, 2025 18:47
The current ocp internal-log command will only retrieve
up to data area 3.  This change will enable retrieving
of all 4 telemetry log data areas.
It will also refactor the code used to save off the
2 files collected:  telemetry log and string log along
with the 1 generated file:  the parsed da 1 and 2 data.
Swap -o and -f on output-format and output-file parameters.

Signed-off-by: jeff-lien-sndk <[email protected]>

Reviewed-by: brandon-paupore-sndk <[email protected]>
The man page documentation has been updated to document the
change of -o for output-format and -f for output-file.  Also
there have been updates made to note new supported data areas.

Signed-off-by: jeff-lien-sndk <[email protected]>

Reviewed-by: brandon-paupore-sndk <[email protected]>
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Aug 28, 2025

Looks good. I haven't checked but it might be necessary to update the tab completions for bash and zsh as well.

@igaw igaw merged commit a6d01ef into linux-nvme:master Aug 28, 2025
16 checks passed
@jeff-lien-sndk
Copy link
Copy Markdown
Contributor Author

@igaw What tab completions? I haven't done that in any previous PR's.

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Aug 28, 2025

I keep forgetting to ask to update the those files whenever a command gets new/changes arguments. In this case it would be this here:


(internal-log)

Comment on lines -17 to +18
[--output-file=<file> | -o <file>]
[--output-format=<fmt> | -f <fmt>]
[--output-file=<file> | -f <file>]
[--output-format=<fmt> | -o <fmt>]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this broke some test automation at my employer.

Copy link
Copy Markdown
Collaborator

@igaw igaw Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I recommend to use the long form version of arguments for automation. They tend to be way more stable.

Yes, we try to keep it stable but sometimes things just go wrong. Sorry.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was made to make the -o and -f parameter options consistent with other nvme cli commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants